using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;

namespace Crossborder.Domian.Orders
{
    public class OrderDetail : BaseEntity
    {
        /// <summary>
        /// 订单Guid
        /// </summary>
        /// <value></value>
        [Comment("订单Guid")]
        public string OrderMasterGuid { get; set; }

        /// <summary>
        /// 订单明细Guid
        /// </summary>
        /// <value></value>
        [Comment("订单明细Guid")]
        public string OrderDetailGuid { get; set; }

        /// <summary>
        /// 商品Id
        /// </summary>
        /// <value></value>
        [Comment("商品Id")]
        public string ProductId { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        /// <value></value>
        [Comment("商品名称")]
        public string ProductName { get; set; }

        /// <summary>
        /// 商品分类
        /// </summary>
        /// <value></value>
        [Comment("商品分类")]
        public string ClassifyName { get; set; }

        /// <summary>
        /// 商品图片地址
        /// </summary>
        /// <value></value>
        [Comment("商品图片地址")]
        public string? ProductImageUrl { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        /// <value></value>
        [Comment("商品数量")]
        public int ProductNum { get; set; }
        
        /// <summary>
        /// 商品价格
        /// </summary>
        /// <value></value>
        [Comment("商品价格")]
        public decimal Price { get; set; }
    }
}